package com.nes.rabbitmq.springboot;

import java.util.stream.Stream;

/**
 * Created by wdq on 17-3-13.
 */
public class User {

    private String name;
    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public static void main(String[] args) {
        Stream.iterate(1,i -> i+1).peek(a -> System.out.print(a+"-")).limit(10).forEach(System.out::println);
    }
}
